package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Title    string  `gorm:"type:varchar(20);not null;index:ip_idx commit:'标题'"`
	Describe string  `gorm:"type:varchar(20);not null;index:ip_idx commit:'描述'"`
	Price    float64 `gorm:"type:decimal(10,2);not null;index:ip_idx commit:'价格'"`
	UserId   int     `gorm:"type:int(10);not null;index:ip_idx commit:'用户id'"`
}
